package com.loveprogrammer.dao;

import com.loveprogrammer.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User,Integer> {

    User findByNickName(String nickName);

    User findByAccount(String account);
}
